package com.armincl.vmanga.start;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;


public class StartPagerAdapter extends FragmentPagerAdapter {
    public StartPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public int getCount() {
        return 2;
    }

    @Override
    public Fragment getItem(int position) {
    	
    	Fragment FragmentToReturn;
    	
    	switch (position) {
		case 0:
			FragmentToReturn = new FavMangasFragment(); 
			break;
		case 1:
			FragmentToReturn = new ExploreSitesFragment();
			break;
		default:
			FragmentToReturn = null;
			break;
		}
    	
    	return FragmentToReturn;
    	
    }
}